﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="FrRegPractica.aspx.cs" Inherits="GestionarPracticas_FrRegPractica"
    Title="Crear Practica" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>
        Registrar Práctica</h1>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div align="left">
                <asp:Table ID="Table1" runat="server">
                    <asp:TableRow>
                        <asp:TableCell>
                            <div align="right">
                                <asp:Button ID="Button1" runat="server" Text="Registrar" CssClass="button" Height="30"
                                    Width="130" OnClick="ButtonRegistrar_Click" />
                            </div>
                        </asp:TableCell>
                        <asp:TableCell>
                            <asp:Button ID="Button2" runat="server" Text="Cancelar" CssClass="button" Width="130"
                                Height="30" OnClick="ButtonCancelar_Click" CausesValidation="False" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>Periodo de Prácticas</asp:TableCell>
                        <asp:TableCell>
                            <asp:DropDownList ID="DropDownListPeriodo" runat="server" CausesValidation="True"
                                Width="250">
                                <asp:ListItem Selected="False"></asp:ListItem>
                            </asp:DropDownList>
                            <br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Debe seleccionar un periodo de prácticas"
                                ControlToValidate="DropDownListPeriodo" Display="Dynamic"></asp:RequiredFieldValidator>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>Programa Académico</asp:TableCell>
                        <asp:TableCell>
                            <asp:DropDownList ID="DropDownListPrograma" runat="server" CausesValidation="True"
                                Width="250">
                                <asp:ListItem Selected="False"></asp:ListItem>
                            </asp:DropDownList>
                            <br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Debe seleccionar un programa académico"
                                ControlToValidate="DropDownListPrograma" Display="Dynamic"></asp:RequiredFieldValidator>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>Estado de la Práctica</asp:TableCell>
                        <asp:TableCell>
                            <asp:DropDownList ID="DropDownListEstado" runat="server" CausesValidation="True"
                                Width="250">
                                <asp:ListItem Selected="False"></asp:ListItem>
                                <asp:ListItem Text="Activa" Value="activa" />
                                <asp:ListItem Text="Suspendida" Value="suspendida" />
                                <asp:ListItem Text="Terminada" Value="terminada" />
                            </asp:DropDownList>
                            <br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Debe seleccionar el estado"
                                ControlToValidate="DropDownListEstado" Display="Dynamic"></asp:RequiredFieldValidator>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell ColumnSpan="2">
                            <fieldset>
                                <legend>Observaciones</legend>
                                <asp:TextBox ID="TextBoxObservaciones" runat="server" TextMode="MultiLine" Rows="6"
                                    Height="200" Width="100%"></asp:TextBox>
                            </fieldset>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>Fecha de Inicio</asp:TableCell>
                        <asp:TableCell>Fecha de Cierre</asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Calendar ID="CalendarFechaInicio" runat="server" Height="180px" Width="60px"
                                BackColor="White" BorderColor="White" CellPadding="0" DayNameFormat="FirstTwoLetters"
                                Font-Names="Arial" Font-Size="8pt" ForeColor="#0066FF" FirstDayOfWeek="Monday"
                                UseAccessibleHeader="False" OnDayRender="CalendarFechaInicio_DayRender">
                                <SelectedDayStyle BackColor="#0066FF" Font-Bold="True" ForeColor="White" />
                                <SelectorStyle BackColor="#CCCCCC" />
                                <WeekendDayStyle BackColor="#FFFFCC" />
                                <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <NextPrevStyle VerticalAlign="Bottom" />
                                <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" Width="10px" />
                                <TitleStyle BackColor="#CCCCCC" BorderColor="#0066FF" Font-Bold="True" />
                            </asp:Calendar>
                        </asp:TableCell>
                        <asp:TableCell>
                                <asp:Calendar ID="CalendarFechaCierre" runat="server" Height="180px" Width="60px"
                                    BackColor="White" BorderColor="White" CellPadding="0" DayNameFormat="FirstTwoLetters"
                                    Font-Names="Arial" Font-Size="8pt" ForeColor="#0066FF" FirstDayOfWeek="Monday"
                                    UseAccessibleHeader="False" OnDayRender="CalendarFechaInicio_DayRender">
                                    <SelectedDayStyle BackColor="#0066FF" Font-Bold="True" ForeColor="White" />
                                    <SelectorStyle BackColor="#CCCCCC" />
                                    <WeekendDayStyle BackColor="#FFFFCC" />
                                    <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                    <NextPrevStyle VerticalAlign="Bottom" />
                                    <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" Width="10px" />
                                    <TitleStyle BackColor="#CCCCCC" BorderColor="#0066FF" Font-Bold="True" />
                                </asp:Calendar>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <div align="right">
                                <asp:Button ID="ButtonRegistrar" runat="server" Text="Registrar" CssClass="button"
                                    Height="30" Width="130" OnClick="ButtonRegistrar_Click" />
                            </div>
                        </asp:TableCell>
                        <asp:TableCell>
                            <asp:Button ID="ButtonCancelar" runat="server" Text="Cancelar" CssClass="button"
                                Width="130" Height="30" OnClick="ButtonCancelar_Click" CausesValidation="False" />
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</asp:Content>
